﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="regUser.aspx.cs" Inherits="LikeTry.regUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
        <asp:Label ID="Label1" runat="server" Text="推荐码"></asp:Label>
        <asp:TextBox ID="txtRegid" runat="server" Width="308px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtRegid" ErrorMessage="Required"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="用户email"></asp:Label>
        <asp:TextBox ID="txtEmail" runat="server" Width="279px"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="txtEmail" ErrorMessage="Need Email" 
            ValidationExpression="(\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*"></asp:RegularExpressionValidator>
        <br />
        <br />
        <asp:Label ID="Label3" runat="server" Text="密码"></asp:Label>
        <asp:TextBox ID="txtUserPwd" runat="server" Width="309px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txtUserPwd" ErrorMessage="Required"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="Label4" runat="server" Text="密码确认"></asp:Label>
        <asp:TextBox ID="txtPwdAgain" runat="server" Width="272px"></asp:TextBox>
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToCompare="txtUserPwd" ControlToValidate="txtPwdAgain" 
            CultureInvariantValues="True" ErrorMessage="Need same as pwd"></asp:CompareValidator>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="注册" />
    
    </div>
    </form>
</body>
</html>
